#include "main.h"
#include "Functions.h"
#include "Global.h"

LPDIRECT3DDEVICE9 g_pD3DDevice=NULL;
short g_BlendType=0;
Vector2 CAMERA=V0;
Vector2 MOUSE=V0;
POINT g_cursorPos;
ULONG WINDOW_WIDTH=1024;//GetSystemMetrics(SM_CXSCREEN);
ULONG WINDOW_HEIGHT=768;//GetSystemMetrics(SM_CYSCREEN);
UINT LEVEL_WIDTH=0;
UINT LEVEL_HEIGHT=0;
Vector2 WINDOW_CENTER=V((float)WINDOW_WIDTH/2, (float)WINDOW_HEIGHT/2);
float GRAVITY=0.3f;
bool g_bSortList=true;
Sprites *g_pSpriteList = new Sprites;
Fonts* g_pFontList = new Fonts;
CSprite* g_pCursor;
LPD3DXSPRITE g_pDrawSprite;
LPD3DXLINE g_pDrawLine;
Vector2 linepts[2];
float Cos[360];
float Sin[360];
long long ENTITIES = 0;